import request from '@/utils/request'

/**
 * 获取规则列表
 * @param { page, pageSize} params
 * @returns
 */
export function getRuleListAPI(params) {
  return request({
    url: 'parking/rule/list',
    params
  })
}

export function createRuleAPI(data) {
    return request({
      url: '/parking/rule',
      method: 'POST',
      data
    })
  }

  export function getDateRuleAPI(id) {
    return request({
      url: `/parking/rule/${id}`,
      method: 'get'
    })
  }
  export function delDataRule(id){
    return request({
        url:`parking/rule/${id}`,
        method:'delete'
    })
  }